package com.bite.deom2;

interface IFlyable {
    void fly();
}

interface IRunable {
    void run();
}

//继承后，又能飞，又能跑
interface Animals extends IFlyable,IRunable {

}

public class Duck implements Animals {
    @Override
    public void fly() {

    }

    @Override
    public void run() {

    }
}
